package com.ruibang.glass.common.domain.material;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 物管成品半成品物品表
 * </p>
 *
 * @author mameng
 * @since 2024-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
public class MaterialCpBcpItemsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识符")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "产品名称")
    private String itemName;

    @ApiModelProperty(value = "产品Id")
    private String itemId;

    @ApiModelProperty(value = "产品编号")
    private String itemCode;

    @ApiModelProperty(value = "成品半成品Id")
    private String cpBcpId;

    @ApiModelProperty(value = "执行标准")
    private String executionStandard;

    @ApiModelProperty(value = "品级")
    private String grade;

    @ApiModelProperty(value = "计划发货数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "计划发货数量")
    private BigDecimal LotQuantity;

    @ApiModelProperty(value = "水平架")
    private String aTypeShelf;

    @ApiModelProperty(value = "批次号")
    private String batchNumber;


    private String specification;


    @ApiModelProperty(value = "订单ID")
    private String orderId;


    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "库位名称")
    private String storageLocationName;

    @ApiModelProperty(value = "库位Id")
    private String storageLocationId;

    @ApiModelProperty(value = "保质期")
    private String expirationDate;

    @ApiModelProperty(value = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate productionDate;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "仓库名称id")
    private String warehouseId;

    @ApiModelProperty(value = "Model等级")
    private String modelGrade;

    @ApiModelProperty(value = "退货Id")
    private String returnId;




}
